home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pbmpl91d.zip / PBMPLUS / PATCH / MAKEFILE.TIF < prev    next >
Text File  |  1993-01-08  |  5KB  |  165 lines

  1. .SUFFIXES:    .out .a .o .c
  2.  
  3. #   $Header: /usr/people/sam/tiff/libtiff/RCS/Makefile.aix,v 1.2 91/08/23 17:09:26 sam Exp $
  4. #
  5. # Tag Image File Format Library
  6. #
  7. # Copyright (c) 1988, 1989, 1990, 1991 Sam Leffler
  8. # Copyright (c) 1991 Silicon Graphics, Inc.
  9. # Permission to use, copy, modify, distribute, and sell this software and 
  10. # its documentation for any purpose is hereby granted without fee, provided
  11. # that (i) the above copyright notices and this permission notice appear in
  12. # all copies of the software and related documentation, and (ii) the names of
  13. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. # publicity relating to the software without the specific, prior written
  15. # permission of Stanford and Silicon Graphics.
  16. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  17. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  18. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  19. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  20. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  21. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  23. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  24. # OF THIS SOFTWARE.
  25. #
  26. # The library will be installed in $(DESTDIR)/lib and the included
  27. # files in $(DESTDIR)/include
  28. DESTDIR=/usr/local
  29. #
  30. AR=ar
  31. #
  32. # SHELL, CTAGS, RANLIB and INSTALL is not defined in standard make for AIX
  33. #
  34. CC=gcc
  35. RANLIB=ranlib
  36. SHELL=$(COMSPEC)
  37. CTAGS=ctags
  38. #
  39. # The AIX versions of install is execute by root only, or SYSV versions.
  40. # INSTALL=/usr/ucb/install
  41. INSTALL=bsdinstall
  42. #
  43. NULL=
  44.  
  45. IPATH=    -I.
  46. #
  47. # Library-wide configuration defines:
  48. #    SUBFILE_COMPAT    include compat code for bad SubFileType tag
  49. #    JPEG_SUPPORT    add support for C-Cube JPEG tags & JPEG algorithm
  50. #
  51. # Compression configuration defines:
  52. #    CCITT_SUPPORT    add support for CCITT Group 3 & 4 algorithms
  53. #    PACKBITS_SUPPORT    add support for Macintosh PackBits algorithm
  54. #    LZW_SUPPORT    add support for LZW algorithm
  55. #    THUNDER_SUPPORT    add support for ThunderScan 4-bit RLE algorithm
  56. #    NEXT_SUPPORT    add support for NeXT 2-bit RLE algorithm
  57. #    JPEG_SUPPORT    add support for C-Cube JPEG tags & JPEG algorithm
  58. #
  59. # Note that if you change the library-wide configuration, you'll
  60. # need to manual force a full rebuild.  Changing the configuration
  61. # of which compression algorithms are included in the library is
  62. # automatically handled (i.e. tif_compress.o has a dependency on
  63. # the Makefile).
  64. #
  65. CONF_COMPRESSION=\
  66.     -DPACKBITS_SUPPORT \
  67.     -DLZW_SUPPORT \
  68.     -DTHUNDER_SUPPORT  \
  69.     -DNEXT_SUPPORT  \
  70.     ${NULL}
  71. CONF_LIBRARY=\
  72.     -Dunix \
  73.     -DUSE_VARARGS=0 \
  74.     -DUSE_PROTOTYPES=1 \
  75.     ${NULL}
  76. CFLAGS= -g -v ${IPATH} ${CONF_LIBRARY}
  77. #
  78. INCS=    tiff.h tiffio.h
  79. SRCS=    tif_ccit.c \
  80.     tif_clos.c \
  81.     tif_comp.c \
  82.     _tif_com.c \
  83.     tif_dir.c \
  84.     tif_dump.c \
  85.     tif_erro.c \
  86.     tif_jpeg.c \
  87.     tif_flus.c \
  88.     tif_lzw.c \
  89.     tif_open.c \
  90.     tif_pack.c \
  91.     tif_prin.c \
  92.     tif_read.c \
  93.     tif_swab.c \
  94.     tif_stri.c \
  95.     tif_thun.c \
  96.     tif_tile.c \
  97.     tif_warn.c \
  98.     tif_writ.c \
  99.     tif_next.c \
  100.     ${NULL}
  101. OBJS=    tif_ccit.o \
  102.     tif_clos.o \
  103.     tif_comp.o \
  104.     _tif_com.o \
  105.     tif_dir.o \
  106.     tif_dump.o \
  107.     tif_erro.o \
  108.     tif_jpeg.o \
  109.     tif_flus.o \
  110.     tif_lzw.o \
  111.     tif_open.o \
  112.     tif_pack.o \
  113.     tif_prin.o \
  114.     tif_read.o \
  115.     tif_stri.o \
  116.     tif_swab.o \
  117.     tif_thun.o \
  118.     tif_tile.o \
  119.     tif_warn.o \
  120.     tif_writ.o \
  121.     tif_next.o \
  122.     ${NULL}
  123. ALL=    libtiff.a
  124.  
  125. .c.o: ; ${CC} -c ${CFLAGS} $*.c
  126.  
  127. all:     ${ALL}
  128.  
  129. ${ALL}:    ${OBJS}
  130.     ${AR} rc libtiff.a $?
  131.     ${RANLIB} libtiff.a
  132.  
  133. ${OBJS}: tiffio.h tiff.h tiffcompat.h tiffioP.h
  134. _tif_com.o: _tif_com.c Makefile
  135.     ${CC} -c ${CFLAGS} ${CONF_COMPRESSION} _tif_com.c
  136. tif_dir.o: tif_dir.c Makefile
  137.     ${CC} -c ${CFLAGS} tif_dir.c
  138. tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
  139.  
  140. g3states.h: mkg3states.c t4.h
  141.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c
  142.     go32 mkg3states > g3states.h
  143.  
  144. install: all installh
  145.     -for i in ${ALL}; do \
  146.         ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
  147.         ${RANLIB} ${DESTDIR}/lib/$$i; \
  148.     done
  149.  
  150. installh: ${INCS}
  151.     -for i in ${INCS}; do \
  152.         h=`basename $$i`; \
  153.         cmp -s $$i ${DESTDIR}/include/$$h || \
  154.             ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
  155.     done
  156.  
  157. clean:
  158.     rm -f ${ALL} ${OBJS} core a.out mkg3states g3states.h
  159.  
  160. tags:    ${SRCS}
  161.     ${CTAGS} ${SRCS}
  162.